<div class="row-content am-cf">
    <div class="row">
        <div class="am-u-sm-12 am-u-md-12 am-u-lg-12">
            <div class="widget am-cf">
                <form id="my-form" class="am-form tpl-form-line-form" method="post">
                    <div class="widget-body">
                        <fieldset>
                            <div class="widget-head am-cf">
                                <div class="widget-title am-fl">发布优惠券</div>
                            </div>
                            <div class="am-form-group">
                                <label class="am-u-sm-3 am-u-lg-2 am-form-label form-require">选择优惠券 </label>
                                <div class="am-u-sm-9 am-u-end">
                                    <select name="data[coupon_id]" required
                                            data-am-selected="{searchBox: 1, btnSize: 'sm',  placeholder:'请选择优惠券'}">
                                        <option value=""></option>
                                        {if isset($list)}
                                            {foreach $list as $item}
                                            <option value="{$item['coupon_id']}">{$item['name']}</option>
                                            {/foreach}
                                        {/if}
                                    </select>
                                </div>
                            </div>
                            <div class="am-form-group">
                                <label class="am-u-sm-3 am-u-lg-2 am-form-label form-require">选择门店 </label>
                                <div class="am-u-sm-9 am-u-end">
                                    <select name="data[shop_id]" required
                                            data-am-selected="{searchBox: 1, btnSize: 'sm',  placeholder:'请选择门店'}">
                                        <option value=""></option>
                                        <option value="0">全部门店</option>
                                        {if isset($shoplist)}
                                            {foreach $shoplist as $item}
                                            <option value="{$item['shop_id']}">{$item['shop_name']}</option>
                                            {/foreach}
                                        {/if}
                                    </select>
                                </div>
                            </div>
                            <div class="am-form-group">
                                <label class="am-u-sm-3 am-u-lg-2 am-form-label form-require">会员条件</label>
                                <div class="am-u-sm-9 am-u-end">
                                    <label class="am-radio-inline">
                                        <input type="radio" name="data[v]" value="0" data-am-ucheck checked> 全部会员
                                    </label>
                                    <label class="am-radio-inline">
                                        <input type="radio" name="data[v]" value="1" data-am-ucheck > V1
                                    </label>
                                    <label class="am-radio-inline">
                                        <input type="radio" name="data[v]" value="2" data-am-ucheck > V2
                                    </label>
                                    <label class="am-radio-inline">
                                        <input type="radio" name="data[v]" value="3" data-am-ucheck > V3
                                    </label>
                                    <label class="am-radio-inline">
                                        <input type="radio" name="data[v]" value="4" data-am-ucheck > V4
                                    </label>
                                    <label class="am-radio-inline">
                                        <input type="radio" name="data[v]" value="5" data-am-ucheck > V5
                                    </label>
                                    <label class="am-radio-inline">
                                        <input type="radio" name="data[v]" value="6" data-am-ucheck > V6
                                    </label>
                                </div>
                            </div>
                            <!-- 表单提交按钮 -->
                            <div class="am-form-group">
                                <div class="am-u-sm-9 am-u-sm-push-3 am-margin-top-lg">
                                    <button type="submit" class="j-submit am-btn am-btn-secondary">提交
                                    </button>
                                </div>
                            </div>
                        </fieldset>
                    </div>
                </form>
            </div>
        </div>
    </div>
</div>
<script>

    $(function () {

        /**
         * 表单验证提交
         */
        $('#my-form').formPost();

    });
</script>
